package com.smalluz.ad.modules.oe.util;

import com.smalluz.ad.modules.oe.enums.OeApiEnum;

/**
 * @author biteam
 * @Title: OeAccountUtil
 * @Description: TODO(描述)
 * @site http://www.smalluz.com/
 * @email 510711793@qq.com
 * @date 2022-06-30 11:17
 */
public class OeAccountUtil {
    private OeAccountUtil() {
    }

    /**
     * 判断是否为纵横组账户
     * @param accountRole
     * @return
     */
    public static boolean isMajordomo(String accountRole) {
        if (OeApiEnum.AccountRoleEnum.CUSTOMER_ADMIN.getCode().equals(accountRole)
                || OeApiEnum.AccountRoleEnum.CUSTOMER_OPERATOR.getCode().equals(accountRole)) {
            return true;
        } else {
            return false;
        }
    }

}
